home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Utilities / AmiBroker / Rexx / Telestock / telestock.doc < prev    next >
Text File  |  1996-04-13  |  3KB  |  85 lines

  1.             Amibroker-telestock-reader
  2.  
  3.             (C) 4'96 by M.Baumeister
  4.  
  5. This Arexx-program is very useful for all user of Amibroker which are getting
  6. their quotes from Telestock (http://www.telestock.co.uk).
  7.  
  8. It has two advantages in comparison to the ASCII-Import Function of Amibroker
  9. a) You don't have to add the $FORMAT lines to every file you want to insert
  10. b) You can enter quotes for many stocks within one file
  11.  
  12.  
  13.                 Installation
  14.  
  15.  
  16. 1) Put the 'telestock.rexx' script somewhere in your path
  17. 2) Build a file named 'names' (see below) somewhere in your hd (or even 
  18.    floppy). This file contains the translation table from ticker symbols
  19.    to stock names for your stocks.
  20.    If you call telestock.rexx, 'names' must be in the current directory
  21.    (unless you change the open statement near the beginning)
  22.  
  23. 3) An example 'names' and an example quotings file (ak.ts) are supplied.
  24.    Of course they will only work, if you have the same stocks in your
  25.    database as me.
  26.  
  27.  
  28.  
  29.                  Usage
  30.  
  31. 1) Get a file with qoutings from telestock.
  32.  
  33.    This file may not contain any
  34.    HTML markup. Use "Save as .... Text" in the netscape browser.
  35.    This has been tested only with netscape 2.x and 1.x browsers on a Sun
  36.    workstation. Other browsers _may_ format the ASCII-representation of
  37.    HTML-pages different, which _may_ lead to an incorrent parsing.
  38.    telestock.rexx will probably not work, if this happens.
  39.  
  40. 2) Call rx telestock.rexx <name of your file>
  41.  
  42.    The file 'names' must be in the current directory, the quotings file <name
  43.    of your file> needn't to be.
  44.  
  45.  
  46. 3) If the script complains on an unknown stock "-----------", everything
  47.    is okay, it just reached the end of the file (the test routines
  48.    don't work)
  49.  
  50.  
  51.  
  52.    Other error messages may be:
  53.  
  54.    * Unkown stock -> Check your 'names' file
  55.    * Arithmetic error -> The quotings file contained an '-' as closing price.
  56.      This happened on a very few quotings and days and I didn't circumvent it
  57.      (the parsing is difficult enough)
  58.      Solution: replace the '-' in the approprate line by some closing price
  59.         (e.g. the low price)
  60.  
  61.  
  62.  
  63.  
  64.             The format of the names File
  65.  
  66. This file contains the translation table from ticker symbols
  67. to stock names for your stocks. It holds one line per stock consisting of the
  68. Amibroker name of the stock and the telestock symbol. Best look at the
  69. following example:
  70.  
  71. -----------snip---------
  72. BASF  BAS.f
  73. Bayer BAY.f
  74. Deut.Bank  DBK.f
  75. ---------snip----------
  76.  
  77. Please consider the following:
  78. - no Tabulators between name and symbol. Just whitespace.
  79. - no spaces _within_ the stock name (of course also none within the symbol)
  80.  
  81.  
  82.  
  83. That were the hottest news from the Amibroker-telestock-clash. I'm Markus
  84. Baumeister (baumeister@informatik.rwth-aachen.de) for ABPU International
  85. News.